package com.itheima.reggie.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.reggie.domain.Employee;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author zsk
 * @create 2022-02-14-9:41
 */
@Repository//没有实际意义
public interface EmployeeMapper extends BaseMapper<Employee> {

    //根据姓名查询信息
    Employee findByUserName(String username);

    //根据姓名查询
    List<Employee> findByName(String name);

    //添加数据
    void save(Employee employee);

    //回显数据，按id查询
    Employee findById(Long id);

    //修改数据
    void update(Employee employee);
}
